/*******************************************************************************
 * Copyright (c) 2009 Nirav Thaker.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 *******************************************************************************/
package name.nirav.refactoringman.wizards;

import name.nirav.refactoringman.refactorings.StaticCallForwardingRefactoring;

import org.eclipse.ltk.core.refactoring.Refactoring;
import org.eclipse.ltk.ui.refactoring.RefactoringWizard;

/**
 * @author Nirav Thaker
 *
 */
public class StaticCallForwardWizard extends RefactoringWizard {

	private StaticCallForwardingRefactoring refactoring;

	public StaticCallForwardWizard(Refactoring refactoring, int flags) {
		super(refactoring, flags);
	}

	public StaticCallForwardWizard(StaticCallForwardingRefactoring refactoring,
			String string) {
		super(refactoring, DIALOG_BASED_USER_INTERFACE
				| PREVIEW_EXPAND_FIRST_NODE);
		this.refactoring = refactoring;
		setDefaultPageTitle(string);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ltk.ui.refactoring.RefactoringWizard#addUserInputPages()
	 */
	@Override
	protected void addUserInputPages() {
		addPage(new StaticCallForwardInputPage(
				"IntroduceLocalIndirectionInputPage", this.refactoring));
	}

}